﻿namespace SampleApplication.CoffeeShopSample.Implementation.Domain
{
    #region Usings

    using Dependencies.Domain;
    using System;

    #endregion Usings

    public class CupFactory : ICupFactory
    {
        public ICup MakeCup(IBeverage beverage)
        {
            if (beverage == null) throw new ArgumentNullException("beverage");

            return new PlasticCup(beverage);
        }
    }
}